import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Properties;

/**
 * @作者: xiaoxun
 * @日期: 2025/3/12 17:34
 * @描述: 案例
 */
public class Anli {
	public static void main(String[] args) throws IOException {
		Properties properties=new Properties();
		properties.load(new FileInputStream("Day11\\src\\users.Properties"));
		if (properties.containsKey("admin3")){
			properties.setProperty("admin3","101010");
		}
		properties.store(new FileOutputStream("Day11\\src\\users.Properties"),"重新写入");
	}
}
